from typing import *


class Solution:
    def findIntersectionValues(self, nums1: List[int], nums2: List[int]) -> List[int]:
        return [
            sum(num in nums2 for num in nums1),
            sum(num in nums1 for num in nums2),
        ]


class Solution:
    def findIntersectionValues(self, nums1: List[int], nums2: List[int]) -> List[int]:
        s1, s2 = set(nums1), set(nums2)
        return [
            sum(num in s2 for num in nums1),
            sum(num in s1 for num in nums2),
        ]
